package cn.youwan.market.entity;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONObject;

import android.util.Log;

import cn.youwan.market.entity.PromotionListbean.Appbean;


public class AppListBean {
	//private int totalPage;
	private List<Appbean> beans;

	public AppListBean(JSONArray j) {
		//this.totalPage = j.optInt("total_page");
		beans = new ArrayList<PromotionListbean.Appbean>();
		//JSONArray array = j.optJSONArray("data");
		try {
			for (int i = 0; i < j.length(); i++) {
				Appbean bean = new Appbean(j.getJSONObject(i));
				beans.add(bean);
				Log.i("bean2", bean.toString());
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

//	public int getTotalPage() {
//		return totalPage;
//	}
//
//	public void setTotalPage(int totalPage) {
//		this.totalPage = totalPage;
//	}

	public List<Appbean> getBeans() {
		return beans;
	}

	public void setBeans(List<Appbean> beans) {
		this.beans = beans;
	}

}
